from dataclasses import dataclass, field
from enum import Enum, auto

from game.stat import Stat

class ItemType(Enum):
    weapon = auto()
    
    # Armor types
    helmet = auto()
    chestplate = auto()
    leggings = auto()
    boots = auto()

@dataclass
class Item:
    id: int
    type: ItemType
    
    stat: Stat = field(default_factory=Stat)
    
ARMOR_TYPES = [ItemType.helmet, ItemType.chestplate, ItemType.leggings, ItemType.boots]
# T_ARMORTYPE: TypeAlias = Literal[ItemType.helmet, ItemType.chestplate, ItemType.leggings, ItemType.boots]
